//package com.ball.dao;
//
//import com.ball.entity.Game;
//import org.apache.ibatis.annotations.*;
//import org.springframework.stereotype.Component;
//
//import java.util.List;
//
//@Component
//@Mapper
//public interface GameMapper  {
//    @Insert("insert into game (id,homeTeam,awayTeam,homeTeamOdds,awayTeamOdds,walletName,walletAddress,money) " +
//            "values(null,#{homeTeam},#{awayTeam},#{homeTeamOdds},#{awayTeamOdds},#{walletName},#{walletAddress},#{money})")
//    void add(Game game);
//
//    @Update("update game set homeTeam=#{homeTeam},awayTeam=#{awayTeam},homeTeamOdds=#{homeTeamOdds},awayTeamOdds=#{awayTeamOdds},walletName=#{walletName},walletAddress=#{walletAddress},money=#{money} " +
//            "where id = #{id}")
//    void update(Game game);
//
//    @Delete("delete from game where id= #{id}")
//    void deleteGameById(@Param("id") int id);
//
//    @Select("select * from game  where id=#{id}")
//    Game queryGameById(@Param("id") int id);
//
//    @Select("select * from  game order by id desc")
//    List<Game> queryGameList();
//
//    @Select("select * from game  where homeTeam= #{teamName}or awayTeam=#{teamName}")
//    List<Game> queryGameByGameName(@Param("teamName") String teamName);
//}